<?php

/**
 * categorie form.
 *
 * @package    gesp
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class categorieForm extends BasecategorieForm {
	public function configure() {
		$this->setWidget('cat_prj_id', new sfWidgetFormInputHidden());

		// modification des libellés
		$this->widgetSchema->setLabels(array(
			'cat_categorie' => 'Catégorie',
		));
	}

	public function bind(array $taintedValues = null, array $taintedFiles = null) {
		// $taintedValues['cat_prj_id'] = sfContext::getInstance()->getUser()->getAttribute('prj_id');
		return parent::bind($taintedValues, $taintedFiles);
	}
}
